package com.dmy.simple.springboot.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    
    
    @Value("${bookAutherName}")
    private String bookAutherName;

    @Value("${bookTitle}")
    private String bookTitle;

    @RequestMapping("demo")
    public String demo() {
        System.out.println(bookAutherName);
        System.out.println(bookTitle);
        return "hello,springboot";
    }
}
